<template>
  <div class="app-view">
    <el-form ref="form" :model="editForm" label-width="80px" :rules="editFormRules">

      <el-form-item label="旧密码" prop="password">
        <el-input v-model="editForm.name"></el-input>
      </el-form-item>
      <el-form-item label="新密码" prop="password">
        <el-input v-model="editForm.phone"></el-input>
      </el-form-item>

    </el-form>

    <span slot="footer" class="dialog-footer">
          <el-button @click="dialogVisible = false">取 消</el-button>
         <el-button type="primary" @click="confirmDialog">确 定</el-button>
    </span>
  </div>
</template>
<script>
export default {
  data() { //定义变量和初始值
    return {
      list: null,//查询之后接口返回集合
      page: 1,//当前页
      limit: 10,//每页记录数
      total: 0,//总记录数
      userQuery: {},//条件封装对象
      dialogVisible: false, //是否展示编辑框
      editForm: {
        userId: "",
        level: "",
        avatar: "",
        name: "",
        phone: "",
      },
      editFormRules: {
        name: [
          {required: true, message: '请输入昵称', trigger: 'blur'}
        ],
        phone: [
          {required: true, message: '请输入手机号', trigger: 'blur'}
        ]
      }

    }
  },
  created() {

  },
  methods: {}


}
</script>
